package com.zhangxin.aiInterview.manager.xfapi.websocket.llmmodel.factory;

import com.zhangxin.aiInterview.manager.disruptor.WsEventProducer;
import com.zhangxin.aiInterview.manager.xfapi.websocket.llmmodel.LLmWs;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 使用工厂模式来创建LLmWs实例
 */
@Deprecated
@Component
public class LLmWordsWsFactory {

    @Resource
    private WsEventProducer wsEventProducer;  // 自动注入 WsEventProducer

    public LLmWs createWordsWs(Long userId) {
        return new LLmWs(userId,wsEventProducer);  // 使用工厂方法创建实例
    }
}